 
//BIASA LAH .. www.pictgalery.co.cc
var ssBG={
  gbr:[
    "http://4.bp.blogspot.com/-AEUNXJbzWSU/UAM96kORwYI/AAAAAAAAAHM/5oU_h6UpQCY/s1600/Hidden+Shine.jpg",
    "http://1.bp.blogspot.com/-atQlzU_Gun4/UAH9TcsB7xI/AAAAAAAAAEw/k2gBR2sFziM/s1600/Imagine+Fall.jpg",
    "http://1.bp.blogspot.com/-j0_t-Rkkzvg/UAH-K0T6QzI/AAAAAAAAAE4/sujwCszDPbc/s1600/Extreme+Blue.jpg",
    "http://1.bp.blogspot.com/-aL5MiFG1VC4/UAIDu2FkpoI/AAAAAAAAAFU/GrRg-H4H8JI/s1600/Ling+Life.jpg",
    "http://2.bp.blogspot.com/-r2rhBZbLwTU/UAMzGJmxCuI/AAAAAAAAAGY/O_1wYroAR38/s1600/RedWay.jpg", 
    "http://3.bp.blogspot.com/-lrn-3gnr6ZQ/UAM1m20TuRI/AAAAAAAAAG4/V9-nNTGYo7w/s1600/TreeShine.jpg", 
    "http://3.bp.blogspot.com/-w3hvB1ABHVw/UAMyzjo11SI/AAAAAAAAAGQ/Z4T-LqEImj8/s1600/Long+View.jpg", 
    "http://2.bp.blogspot.com/-YwzddvSjkfI/UAMz1Q6IoiI/AAAAAAAAAGo/LZN9Q-b2kh8/s1600/Thrust.jpg", 
    "http://4.bp.blogspot.com/--TG6bSUUor4/T_9Dl_DX5ZI/AAAAAAAAABk/nWEzuKmR2Hw/s1600/555946_469574206387730_876298618_n.jpg", 
    "http://2.bp.blogspot.com/-QCCmTuw_no8/T_9B9zANZUI/AAAAAAAAAA4/uczHgQYWP2A/s1600/208994_469574309721053_1979900028_n.jpg", 
    "http://3.bp.blogspot.com/-JjkJEsU6tNg/T_9CR3PzL6I/AAAAAAAAABA/gvt2nSrTQqo/s1600/250814_469574389721045_444786639_n.jpg", 
    "http://3.bp.blogspot.com/-OX_X1D_Q9_I/T_9BkEgidzI/AAAAAAAAAAw/4784ehXRmKo/s1600/205331_469574043054413_1278680082_n.jpg", 
   
  ],
  now:0,
  SlideMyBG:function(list,style,speed,bgPos,bgSize,bgRep){
    if(!ssBG.SlideMyBG.hasRun){ssBG.SlideMyBG.hasRun=true;
    if(list==null||list==''){list=ssBG.gbr}else{if(typeof list!='object'){list=ssBG.gbr}}
    if(style==null||style==''){style='random'}
    if(speed==null||speed==''){speed=5000}
    if(bgPos==null||bgPos==''){bgPos='top center'}
    if(bgSize==null||bgSize==''){bgSize='100%'}
    if(bgRep==null||bgRep==''){bgRep='repeat'}
    ssBG.gaya=style;ssBG.jeda=speed;ssBG.gbr=list;ssBG.pos=bgPos;ssBG.size=bgSize;ssBG.rep=bgRep;
    ssBG.opt={'background-attachment':'fixed','background-repeat':ssBG.rep,'-moz-background-size':ssBG.size,'background-size':ssBG.size};
    }
    if(ssBG.gaya=='random'){ssBG.gbr=ssBG.gbr.sort(function(){return 0.5-Math.random()})}
    var img=new Image();var brp=ssBG.gbr.length;if(ssBG.now>=brp){ssBG.now=0}
    var gbrSkrng=ssBG.gbr[ssBG.now];ssBG.now++;
    if($('#bg-fader').length==0){$('body').prepend('<div id="bg-fader" style="opacity:0.0;position:fixed;top:0;left:0;width:100%;height:100%;background-color:'+$('body').css('background-color')+'"></div>');$('#bg-fader').css(ssBG.opt);$('body').css(ssBG.opt)}
    $(img).load(function(){
      $('#bg-fader').css({'background-image':'url('+gbrSkrng+')','background-position':ssBG.pos}).animate({opacity:1.0},'slow','linear',function(){
        $('body').css({'background-image':'url('+gbrSkrng+')','background-position':ssBG.pos});
        $(this).animate({opacity:0.0},'slow','linear');
        setTimeout("ssBG.SlideMyBG()",ssBG.jeda);
      });
    }).attr('src',gbrSkrng).error(function(huh){ssBG.SlideMyBG()});
  }
};
